package com.chris.libs.devtools.x.v1.utils.widget;

import android.content.Context;
import android.widget.TextView;

import org.jetbrains.annotations.NotNull;

/**
 * @author Chris chan
 * Create on： 2025/9/13 10:38
 * Use for: TextView工具
 * Explain:
 */
public class TextViewUtil {
    public static TextView create(@NotNull Context context, @NotNull String text) {
        TextView textView = new TextView(context);
        textView.setText(text);
        return textView;
    }

    public static TextView of(@NotNull Context context, @NotNull String text) {
        return create(context, text);
    }
}
